#pragma once
#include <cdroid.h>
#include "page_base.h"
#include "page_adapter_up.h"
#include "page_adapter_down.h"

class PageMode1 : public PageBase
{
public:
    enum
    {
        MSG_UPDATE_DATA
    };

private:
    ViewGroup *viewPagerUp2;
    // TextView *temperatureNum;
    // TextView *date;
    // ImageView *weather;

    void onClickListener(View &v);

public:
    MyPageAdapterUp *lunBoAdapterUp;
    MyPageAdapterDown *lunBoAdapterDown;

    PageMode1(ViewGroup *wind_page_box);
    ~PageMode1();
    void onMsg(int type, void *data);

private:
    // Runnable myTickerForWeather;
    // int myTickerTimeForWeather = 1000 * 60 * 31; // 31分钟
    // void onTickerForWeather();

    Runnable myTickerForDay;
    int myTickerTimeForDay = 3000; // 1秒
    void onTickerForDay();
};